package com.company.oa.announcement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.oa.announcement.dto.FeedbackDTO;
import com.company.oa.announcement.entity.AnnouncementFeedback;

import java.util.Map;

public interface AnnouncementFeedbackService extends IService<AnnouncementFeedback> {
    
    IPage<AnnouncementFeedback> getFeedbackPage(int page, int size, Long announcementId);
    
    boolean submitFeedback(FeedbackDTO feedbackDTO, Long userId, String userName);
    
    Map<String, Object> getFeedbackStats(Long announcementId);
    
    boolean hasSubmittedFeedback(Long announcementId, Long userId);
} 